import os
import sys

from django.conf import settings

APP_ROOT = os.path.realpath(os.path.dirname(__file__))

sys.path.append(os.path.join(APP_ROOT, '..'))
sys.path.append(APP_ROOT)

from settings_importer import settings as ms

settings.configure(
    DEBUG = True,
    DATABASES = ms.DATABASES,
    INSTALLED_APPS = ('core', 'app')
)

use_threads = 'sqlite' in ms.DATABASES['default']['ENGINE']
